import request from '@/utils/request'

// 总收入和总退费
export function getTotalBalance(query) {
  return request({
    url: '/datamanage/sum',
    method: 'post',
    params: query
  })
}

// 通过支付宝方式的总收入和总退费
export function getTotalBalanceByAlipay(query) {
  return request({
    url: '/balance/getTotalBalanceByAlipay',
    method: 'post',
    params: query
  })
}

//通过现金方式的总收入和总退费
export function getTotalBalanceByCash(query) {
  return request({
    url: '/balance/getTotalBalanceByCash',
    method: 'post',
    params: query
  })
}
